<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="decorator" content="default" />
<title>资料领取数据管理</title>
<script type="text/javascript">
	$(document).ready(function() {
		$("#btnExport").click(function(){
			top.$.jBox.confirm("确认要导出数据吗？","系统提示",function(v,h,f){
				if(v=="ok"){
					$("#searchForm").attr("action","${ctx}/project/assGet/export");
					$("#searchForm").submit();
					$("#searchForm").attr("action","${ctx}/project/assGet/list");
				}
			},{buttonsFocus:1});
			top.$('.jbox-body .jbox-icon').css('top','55px');
		});
	});
	function page(n, s) {
		$("#pageNo").val(n);
		$("#pageSize").val(s);
		$("#searchForm").submit();
		return false;
	}
	
</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/project/assGet/list">资料领取数据列表</a></li>
		<li><a href="${ctx}/project/assGet/form">资料领取数据添加</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="assGet"
		action="${ctx}/project/assGet/list" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}" />
		<input id="pageSize" name="pageSize" type="hidden"
			value="${page.pageSize}" />
		<label>装置 ：</label>
		<form:input path="zz" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;&nbsp;	
		<label>工号 ：</label>
		<form:input path="gh" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;&nbsp;		
		<label>领取人员 ：</label>
		<form:input path="lqry" htmlEscape="false" maxlength="50" class="input-medium"/>
		&nbsp;&nbsp;	
		<label>领取日期 ：</label>
		<input name="ksrq" type="text"  maxlength="20" class="input-medium Wdate" value="${ppRecord.ksrq}"
			onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
			到
		<input name="jsrq" type="text"  maxlength="20" class="input-medium Wdate" value="${ppRecord.jsrq}"
			onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>	
		&nbsp;&nbsp;	
		<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>	
		<input id="btnExport" class="btn btn-primary" type="button" value="导出"/>
	</form:form>
	<common:message content="${message}" />
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>序号</th>
				<th>工程</th>
				<th>单位工程</th>
				<th>装置</th>
				<th>工号</th>
				<th>仪器型号</th>
				<th>胶片型号</th>
				<th>胶片规格</th>
				<th>数量</th>
				<th>领取人员</th>
				<th>领取日期</th>
				<th>拍片损毁</th>
				<th>洗片损毁</th>
				<th>底片质量损毁</th>
				<th>交回日期</th>
				<th>交回数量</th>
				<th>验收情况</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="assGet" varStatus="i">
				<tr>
					<td>${i.index+1}</td>
					<td>${assGet.project.name} </td>
					<td>${assGet.subProject.name} </td>
					<td>${assGet.zz}</td>
					<td>${assGet.gh}</td>
					<td><a href="${ctx}/project/assGet/form?id=${assGet.id}">${assGet.sbxh}</a></td>
					<td>${assGet.jpxh} </td>
					<td>${assGet.jpgg} </td>
					<td>${assGet.sl} </td>
					<td>${assGet.lqry} </td>
					<td>${assGet.lqrq} </td>
					<td>${assGet.ppsh} </td>
					<td>${assGet.xpsh} </td>
					<td>${assGet.dpzlsh} </td>
					<td>${assGet.jhrq} </td>
					<td>${assGet.jhsl} </td>
					<td>${assGet.ysqk} </td>
					<td>
						<a href="${ctx}/project/assGet/form?id=${assGet.id}">修改</a> 
						<a href="${ctx}/project/assGet/delete?id=${assGet.id}" onclick="return confirmx('确认要删除该记录吗？', this.href)">删除</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>